﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Company.Model;
using Company.IDAL;
using System.Linq.Expressions;
using System.Data;

namespace Company.DAL
{
    public partial class UserDAL : BaseDAL<T_User>, IUserDAL
    {
        public IQueryable<T_User> GetModelIsByPage<type>(int pageSize, int pageIndex, bool isAsc, Expression<Func<T_User, type>> OrderByLambda, Expression<Func<T_User, bool>> WhereLambda)
        {
            throw new NotImplementedException();
        }

        public T_User Login(string name)
        {
            var sss = base.dbContext.Set<T_User>().Where(T=>T.Users_Name==name).FirstOrDefault();
            return sss;
        }
    }
}
